package com.briup.jz.service;

import java.util.List;

import com.briup.jz.bean.Product;
import com.briup.jz.bean.extend.ProductExtend;
import com.briup.jz.utils.CustomerException;

public interface IProductService {
	
	void saveOrUpdate(Product product) throws CustomerException;
	
	List<Product> query(String name,String status,Long produtCategoryId);
	
	void deleteById(long id) throws CustomerException;
	
	//级联查询
	List<ProductExtend> queryCascade(String name,String status,Long produtCategoryId);
	
	//分页查询
	List<ProductExtend> pageQuery(int page,int pageSize,String name,String status,Long produtCategoryId);
	
	//更新商品状态
	void online(Long id);

	void offline(Long id);


}

